package top.go2do.websiteNavigation.exception;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/7/13 19:21
 */
public enum EmailErrorCode {
    EMAIL_VERIFY_CODE_EXIST(6401, "email.verify_code_exist"),
    EMAIL_VERIFY_CODE_EXPIRED(6402, "email.verify_code_expired"),
    EMAIL_VERIFY_CODE_ERROR(6403, "email.verify_code_error"),
    EMAIL_EXIST(6405, "email.user_exist"),
    ;

    private final int code;
    private final String msgKey;

    EmailErrorCode(int code, String msgKey) {
        this.code = code;
        this.msgKey = msgKey;
    }

    public int getCode() {
        return code;
    }

    public String getMsgKey() {
        return msgKey;
    }
}
